// 通用装备接口
const mongoose = require('mongoose');
const Equipment = require("../models/Equipments/Equipment");


exports.GetAllEquipmentInfo = async (req, res) => {
    equipmentinfo = Equipment.find().populate('equipments_type', '_id name')
    .exec((err,equipment) => {
        if(err)return res.status(404),json(err);
        if(!equipment){
            return res.status(404),json('没有任何物品');
        }
        return res.json(equipment);
    });
};

